// 常用方法集合

let copy=(obj)=>{
    if(Array.isArray(obj)){
        let py = [];
        //数组
        for(let a in obj){
            py.push(copy(obj[a]));
        }
        return py;
    }else if(obj && typeof obj === 'object'){
        //对象
        let py = {};
        for(let a in obj){
            py[a]=copy(obj[a]);
        }
        return py;
    }else{
        //纯粹的内容了，返回
        return obj;
    }
}



export default{
    copy:copy,
}